/**
 * 
 */
package gr.nouki.socialparkingfinder.database.domain;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

/**
 * @author npapadopoulos
 * 
 */
@DatabaseTable(tableName = "brand")
public class Driver {

	public Driver() {
		// ORMLite needs a no-arg constructor
	}

	@DatabaseField(generatedId = true)
	private Long id;

	@DatabaseField(canBeNull = false)
	private String username;

	@DatabaseField(canBeNull = false)
	private String password;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append("id=").append(id);
		sb.append(", ").append("username=").append(username);
		sb.append(", ").append("password=").append(password);
		return sb.toString();
	}
}